package com.jjiang.bbmall.product.fallback;

import com.jjiang.bbmall.product.feign.SeckillFeignService;
import com.jjiang.common.exception.BizCodeEnumerate;
import com.jjiang.common.utils.R;
import org.springframework.stereotype.Component;

@Component
public class SeckillFeignServiceFallback implements SeckillFeignService {

    @Override
    public R getSkuSeckillInfo(Long skuId) {
        return R.error(BizCodeEnumerate.TOO_MANY_REQUEST_EXCEPTION.getCode(), BizCodeEnumerate.TOO_MANY_REQUEST_EXCEPTION.getMsg());
    }
}
